//
//  Level01Layer.h
//  Space shooting
//
//  Created by Raiden on 9/4/13.
//
//

#ifndef __Space_shooting__Level01Layer__
#define __Space_shooting__Level01Layer__

#include <iostream>
#include "Player.h"
#include "cocos2d.h"

using namespace cocos2d;

class Level01Layer : public cocos2d::CCLayer {
    
    CCLabelBMFont *score;
    CCSize size;
    
    Player *player;
    CCProgressTimer *hpBar;
    
    CCSprite *homeBg;
    
    int timer = 0;

public:
        
    Level01Layer();
    ~Level01Layer();
    
    void addWave01();
    void addWave02();
    void addWave03();
    void addWave04();
    
    void update(float dt);
    void menuItemCallback(CCObject *object);   
    
    void addEnemy();
    void displayMenu();
    
    bool checkInbound(int x, int y);
    
    virtual void ccTouchesMoved(cocos2d::CCSet *pTouches, cocos2d::CCEvent *pEvent);
    
};

#endif /* defined(__Space_shooting__Level01Layer__) */
